package org.pan.service;

import org.pan.domain.PageResult;
import org.pan.domain.db.CardUser;
import org.pan.domain.db.PhysicalCard;

import java.util.List;

/**
 * 卡片用户数据访问接口
 *
 * Created by panmingzhi on 2015/12/25.
 */
public interface CardUserService {

    Long saveCardUser(CardUser cardUser);

    CardUser getCardUserById(Long id);

    PhysicalCard getPhysicalCardById(Long id);

    Long savePhysicalCard(PhysicalCard physicalCard);

    List<CardUser> getCardUserList(int first, int max, CardUser cardUser);

    PageResult createPageResult(Integer page, Integer pageSize, CardUser cardUser);

    int countCardUserList(CardUser cardUser);
}
